package com.zndroid.gridview.inner.drag;

import android.content.Context;

import com.zndroid.gridview.AGridDragAdapter;
import com.zndroid.gridview.IImageBean;
import com.zndroid.gridview.load.IImageDisplayEngine;

import java.util.List;

public class GridDragFixedLastAdapter<T extends IImageBean> extends AGridDragAdapter<T> {
    public GridDragFixedLastAdapter(Context context, List<T> list, IImageDisplayEngine engine) {
        super(context, list);
        super.engine = engine;
    }

    @Override
    public boolean isFixed(int position) {
        if (!isFixIntercept()) {
            if (null != list && list.size() > 0) {
                return position == list.size() - 1;
            }

        }
        return false;
    }
}
